<script setup lang="ts"></script>

<template>
	<view>{{ $store.getters['test/getNum'] }}</view>
</template>

<script lang="ts">
export default {
	name: 'demo_TestVuex',
	onLoad() {
		console.log(process.env.UNI_PLATFORM)
		this.$store.commit('test/PLUS')
		let test = this.$store.getters['test/getNum']
		console.log(test)
		test = this.$store.getters['test/getAge']
		console.log(test)
	}
}
</script>
